package com.woohua.demo.strategy.dealer;

import com.woohua.demo.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


/**
 * @author wooHua
 * @date 2022/6/17 9:54
 * @description
 */
@Component
public class DemoStrategyOne extends DemoAbstractStrategy {

    @Autowired
    private GoodsService goodsService;

    @Override
    public String childSay() {
        System.out.println("DemoStrategyOne.childSay start");
        goodsService.get();
        System.out.println("DemoStrategyOne.childSay end");
        return orderService.say("one ha");
    }

}
